package com.qingcheng.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.qingcheng.dao.OrdercountsMapper;
import com.qingcheng.pojo.order.Ordercounts;
import com.qingcheng.service.order.OrdercountsService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;
@Service
public class OrdercountsServiceImpl implements OrdercountsService {

    @Autowired
    private OrdercountsMapper ordercountsMapper;
    /**
     * 更新统计表
     * @return
     */
    @Override
    public void insertList(Ordercounts ordercounts) {

        ordercounts = new Ordercounts();
        ordercounts.setBrowsepbno(ordercountsMapper.findbybrowsepbno().toString());
        ordercounts.setOrderpbno(ordercountsMapper.findbyorderpbno().toString());
        ordercounts.setOrderno(ordercountsMapper.findbyorderno().toString());
        ordercounts.setQuantityno(ordercountsMapper.findbyquantityno().toString());
        ordercounts.setValidorderno(ordercountsMapper.findbyvalidorderno().toString());
        ordercounts.setQuantitymoney(ordercountsMapper.findbyquantitymoney().toString());
        ordercounts.setRefundmoney(ordercountsMapper.findbyrefundmoney().toString());
        ordercounts.setPaymentpbno(ordercountsMapper.findbypaymentpbno().toString());
        ordercounts.setPaymentno(ordercountsMapper.findbypaymentno().toString());
        ordercounts.setPayno(ordercountsMapper.findbypayno().toString());
        ordercounts.setPaymentmoney(ordercountsMapper.findbypaymentmoney().toString());
        ordercounts.setCustmoney(ordercountsMapper.findbycustmoney().toString());

        ordercountsMapper.insert(ordercounts);
    }









    @Override
    public Integer findbybrowsepbno() {
        return ordercountsMapper.findbybrowsepbno();
    }

    @Override
    public Integer findbyorderpbno() {
        return ordercountsMapper.findbyorderpbno();
    }

    @Override
    public Integer findbyorderno() {
        return ordercountsMapper.findbyorderno();
    }

    @Override
    public Integer findbyquantityno() {
        return ordercountsMapper.findbyquantityno();
    }

    @Override
    public Integer findbyvalidorderno() {
        return ordercountsMapper.findbyvalidorderno();
    }

    @Override
    public Integer findbyquantitymoney() {
        return ordercountsMapper.findbyquantitymoney();
    }

    @Override
    public Integer findbyrefundmoney() {
        return ordercountsMapper.findbyrefundmoney();
    }

    @Override
    public Integer findbypaymentpbno() {
        return ordercountsMapper.findbypaymentpbno();
    }

    @Override
    public Integer findbypaymentno() {
        return ordercountsMapper.findbypaymentno();
    }

    @Override
    public Integer findbypayno() {
        return ordercountsMapper.findbypayno();
    }

    @Override
    public Integer findbypaymentmoney() {
        return ordercountsMapper.findbypaymentmoney();
    }

    @Override
    public Integer findbycustmoney() {
        return ordercountsMapper.findbycustmoney();
    }

    @Override
    public List<Ordercounts> findAll() {
        return ordercountsMapper.selectAll();
    }
}
